package com.ruoyi.oss.service.impl;

import java.util.Arrays;
import java.util.List;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.oss.domain.OssFile;
import com.ruoyi.oss.mapper.OssFileMapper;
import com.ruoyi.oss.service.IOssFileService;

@Service
public class OssFileServiceImpl extends ServiceImpl<OssFileMapper, OssFile> implements IOssFileService {

	@Override
	public List<OssFile> selectImMessageList(OssFile ossFile) {
		QueryWrapper<OssFile> query = new QueryWrapper<OssFile>();
		query.setEntity(ossFile);
		return baseMapper.selectList(query);
	}

	@Override
	public int deleteByIds(String ids) {
		return baseMapper.deleteBatchIds(Arrays.asList(ids.split(",")));
	}

}
